package net.betou.trade.main.dao;

import java.util.List;

import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.SuggAnswer;

/**
 * 意见回复DAO接口。
 * 
 * 
 * @author O.Y.
 * 
 */
public interface SuggAnswerDao{
	
	public SuggAnswer save( SuggAnswer bean );
	
	public SuggAnswer deleteById( Integer id );
	
	public SuggAnswer updateByUpdater( Updater< SuggAnswer > updater );
	
	public SuggAnswer findById( Integer id );
	
	public Pagination getPage( Integer selfId, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize );
	
	public Pagination getPageByCriteria( String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String sql );
	
	public List<SuggAnswer> findOnSugg( Integer id );
	
}